{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$goods_info_id.id}">

    <div class="layui-form-item">
        <label class="layui-form-label">参与秒杀</label>
        <div class="layui-input-block" id="is_c2">

            <input type="radio" name="status" value="1" {if $xs_goods.status==1}checked{/if} title="关闭" lay-filter="ccc2">

            <input type="radio" name="status" value="2" {if $xs_goods.status==2}checked{/if} title="开启" lay-filter="ccc2">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">秒杀时间</label>
        <div class="layui-input-block">
            <select name="xs_id">
                <option>请选择秒杀时间</option>
                {volist name="ms_time" id="vo"}
                <option value="{$vo.id}"
                <?php if( $vo['id'] == $xs_goods['xs_id']){ ?> selected <?php }?>>{$vo.start_time}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">秒杀价格</label>
        <div class="layui-input-block">
            <input type="text" name="price" value="{$xs_goods.price}"
                   lay-verify="required|number|minDecimal"
                   autocomplete="off"
                   placeholder="活动价格"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}